<script src="<?php echo base_url();?>assets/js/uploadify/jquery.uploadify.v2.1.4.min.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>assets/js/uploadify/swfobject.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>assets/js/jwplayer/jwplayer.js" type="text/javascript"></script>
<script src="<?php echo base_url();?>assets/js/profile.js" type="text/javascript"></script>
<div id="main-contentz">
	<div style="margin-top:60px;" id="main-content-area">
		<div style="height:560px;" id="main-content-wrap">
			<div id="add-messages-wrap">
				<div class="tooltip" style="display: block;width: 453px;margin: 0 0 10px 0;">When creating a eulogy video you should be alone in a quiet setting, gather your thoughts and your fondest memories of your life so far. Then begin to record
your video message that will be your final farewell to all of your family and friends.</div>
				<div id="top-messages">
					<h2 style="float:left; color:#fff; font-size:14px; margin-top:10px; margin-left:10px">Add Eulogy Video</h2>
				</div>
				<div id="con-messages">
					<div class="error-r"></div>
					<div class="clear"></div>
					<div id="video_holder">
						<?php
							$ab_path = $_SERVER['DOCUMENT_ROOT'].'/mlme2/assets/images/useruploads/eulogy_video/';
							if(!empty($userinfo->eulogy_video) && file_exists($ab_path.$userinfo->eulogy_video)){ ?>
								<embed flashvars="file=<?php echo base_url();?>assets/images/useruploads/eulogy_video/<?php echo $userinfo->eulogy_video;?>&autostart=false"
								  allowfullscreen="true"
								  id="player1"
								  name="player1"
								  src="<?php echo base_url();?>assets/js/jwplayer/player.swf"
								  width="415"
								  height="350"
								/>

						<?php }else{ ?>
							No Video
						<?php }//end if?>
					</div>
					<?php if(trim($this->uri->segment(3)) == ''):?>
						<form method="POST" name="add_messages_frm" id="add_messages_frm" action="#" enctype="multipart/form-data">
							<input type="hidden" name="btn_text" id="btn_text" value="<?php echo (empty($userinfo->eulogy_video))? 'Browse Video':'Change Video';?>"/>
							<input type="hidden" name="cdbase_video" id="cdbase_video" value="<?php echo $userinfo->eulogy_video;?>"/>
							<input type="hidden" name="uid" id="uid" value="<?php echo Myuser_helper::get_userid($email); ?>" />
							<input type="hidden" name="baseurl" id="baseurl" value="<?php echo base_url();?>" />
							<div id="fileupload-wrap" class="fleft">
								<div class="help-tips" id="help-upload"></div>
								<div><input type="file" id="file_upload" name="file_upload" /></div>
							</div>
							<p class="fright" style="margin-right:10px;">
								<input type="hidden" value="videos" id="msgtype" name="msgtype">
								<input type="image" src="<?php echo base_url();?>assets/images/submit.png" id="eu-video-submit" alt="" value="">
							</p>
						</form>
					<?php endif;?>
				</div>
			</div>
		</div>
	</div>
</div>